package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TrainingMedicalRecord;
import com.ruoyi.system.domain.TrainingMedicalRecordCount;
import org.apache.ibatis.annotations.Param;

/**
 * 临床医案Mapper接口
 * 
 * @author dp
 * @date 2023-11-27
 */
public interface TrainingMedicalRecordMapper 
{
    /**
     * 查询临床医案
     * 
     * @param medicalRecordId 临床医案主键
     * @return 临床医案
     */
    public TrainingMedicalRecord selectTrainingMedicalRecordByMedicalRecordId(Long medicalRecordId);

    /**
     * 查询临床医案列表
     * 
     * @param trainingMedicalRecord 临床医案
     * @return 临床医案集合
     */
    public List<TrainingMedicalRecord> selectTrainingMedicalRecordList(TrainingMedicalRecord trainingMedicalRecord);

    /**
     * 查询临床医案合计列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param RecordStatus
     * @return
     */
    public List<TrainingMedicalRecordCount> selectTrainingMedicalRecordCount(@Param("submitBegin") String submitBegin,
                                                                             @Param("submitEnd") String submitEnd,
                                                                             @Param("baseId") String baseId,
                                                                             @Param("RecordStatus") String RecordStatus,
                                                                             @Param("cadetId") Long cadetId,
                                                                             @Param("cadetName") String cadetName);

    /**
     * 查询临床医案列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param cadetId
     * @param RecordStatus
     * @return
     */
    public List<TrainingMedicalRecord> getRecordList(@Param("submitBegin") String submitBegin,
                                                     @Param("submitEnd") String submitEnd,
                                                     @Param("baseId") String baseId,
                                                     @Param("cadetId") String cadetId,
                                                     @Param("RecordStatus") String RecordStatus);

    /**
     * 新增临床医案
     * 
     * @param trainingMedicalRecord 临床医案
     * @return 结果
     */
    public int insertTrainingMedicalRecord(TrainingMedicalRecord trainingMedicalRecord);

    /**
     * 修改临床医案
     * 
     * @param trainingMedicalRecord 临床医案
     * @return 结果
     */
    public int updateTrainingMedicalRecord(TrainingMedicalRecord trainingMedicalRecord);

    /**
     * 删除临床医案
     * 
     * @param medicalRecordId 临床医案主键
     * @return 结果
     */
    public int deleteTrainingMedicalRecordByMedicalRecordId(Long medicalRecordId);

    /**
     * 批量删除临床医案
     * 
     * @param medicalRecordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrainingMedicalRecordByMedicalRecordIds(Long[] medicalRecordIds);
}
